<?php
/**
 * @package    [PACKAGE_NAME]
 *
 * @author     [AUTHOR] <[AUTHOR_EMAIL]>
 * @copyright  [COPYRIGHT]
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 * @link       [AUTHOR_URL]
 */

use Joomla\CMS\MVC\View\HtmlView;
//jimport('joomla.application.component.view');

defined('_JEXEC') or die;

/**
 * WxMinipro view.
 *
 * @package   [PACKAGE_NAME]
 * @since     1.0.0
 */
class WxMiniproViewOpenid extends HtmlView
{
    public function display($tpl = null)
    {
        $jinput = JFactory::getApplication()->input;
        $id     = $jinput->get('id', 1, 'INT');

        switch ($id) {
            case 2:
                $message = 'Good bye World!';
                break;
            default:
            case 1:
                $message = 'Hello World!';
                break;
        }
        echo  $message;
        //parent::display($tpl);
    }
}
